<?php

namespace app\admin\command;

use app\admin\model\Reserve;
use app\admin\model\Room;
use app\admin\model\User;
use app\common\library\Dianping;
use app\common\library\Tongtongsuo;
use app\common\library\Yunding;
use Carbon\Carbon;
use fast\Http;
use fast\Random;
use think\console\Command;
use think\console\Input;
use think\console\input\Option;
use think\console\Output;
use think\Db;
use think\Env;
use think\Exception;
use think\Log;

class TestDianping extends Command
{

    protected function configure()
    {
        $this->setName('testdianping')
            ->setDescription('test dianping api');
    }

    protected function execute(Input $input, Output $output)
    {
        @ini_set("memory_limit",'-1');
        $stime=microtime(true);


        $dianping = new Dianping();
        $kkk = $dianping->prepare('9031912849');
//        $kkk = $dianping->queryByQrcode('wefwef');
        var_dump($kkk);


        echo PHP_EOL;
        $etime=microtime(true);//获取程序执行结束的时间
        $total=$etime-$stime;   //计算差值
        $output->writeln($total);
    }



}
